package com.example.seata.service;

import com.example.common.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SeataTestService implements TestService {

    private final MyService myService;


    @Autowired
    public SeataTestService(MyService myService) {
        this.myService = myService;
    }

    @Override
    public Object doTest(Object param) {
        myService.operateWithTCC();
        return null;
    }
}
